package pl.multimedialne.carculator.gui.dataContainers;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

public class JournalsDataContainer implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public ArrayList<Refuel> refuels;
	public Date lastRefuel;
	public Date nextReview;
	public Date insuranceExpiration;
	public double oilRefill;
	
	public JournalsDataContainer(){
		refuels = new ArrayList<Refuel>();
		lastRefuel = new Date();
		nextReview = new Date();
		insuranceExpiration = new Date();
		oilRefill = 0.0;
	}
	
	public void AddRefuel(Date _date, double _amount, int _fuelType, double _odo){
		refuels.add(new Refuel(_date, _amount,_fuelType,_odo));
	}
}
